package com.ss.android.article.base.feature.d;

import com.ss.android.common.AbsApiThread;
import com.ss.android.common.util.NetworkUtils;
import com.ss.android.update.UpdateChecker;

final class CheckVersionUpdateThread extends AbsApiThread {
    private final a b;
    private final UpdateChecker a;

    CheckVersionUpdateThread(com.ss.android.article.base.feature.d.a arg1, String arg2, UpdateChecker arg3) {
        super(arg2);
        this.b = arg1;
        this.a = arg3;
    }

    public final void run() {
        int v1 = 2;
        if(!this.a.a()) {
            if(!NetworkUtils.isNetworkAvailable(this.b.mContext)) {
                this.b.b.sendEmptyMessage(1);
            }
            else {
                this.b.b.sendEmptyMessage(v1);
            }
        }
        else if(!this.a.b()) {
            this.b.b.sendEmptyMessage(v1);
        }
        else {
            this.b.b.sendEmptyMessage(3);
        }
    }
}

